import type { AppRouteModule } from '@/router/types'

import { LAYOUT } from '@/router/constant'

const dashboard: AppRouteModule = {
  path: '/dashboard',
  name: 'Dashboard',
  component: LAYOUT,
  parentId: 0,
  redirect: '/dashboard/workbench',
  meta: {
    orderNo: 1,
    icon: 'ant-design:home-outlined',
    title: '首页',
  },
  children: [
    // {
    //   path: '/dashboard/analysis',
    //   name: 'Analysis',
    //   component: () => import('@/views/dashboard/analysis/index.vue'),
    //   meta: {
    //     // affix: true,
    //     title: '分析页',
    //     icon: 'ant-design:bar-chart-outlined',
    //   },
    // },
    {
      path: '/dashboard/workbench',
      name: 'Workbench',
      component: () => import('@/views/dashboard/workbench/index.vue'),
      meta: {
        title: '工作台',
        icon: 'ant-design:appstore-outlined',
      },
    },
  ],
}

export default dashboard
